package org.budo.cmbc.sdk.entity;

import org.budo.xml.XmlObject;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 客户账单回单响应
 * 
 * @author zq
 */
@Getter
@Setter
@Accessors(chain = true)
public class B2eElectNoteDownLoadResponse extends AbstractCmbcResponse {
    private static final long serialVersionUID = -5204566438067612407L;

    private String DownloadFileName;

    private String DownloadFileContent;

    public B2eElectNoteDownLoadResponse(String responseXml) {
        this.setResponseBody(responseXml);

        XmlObject xmlObject = this.xDataBody(responseXml);

        this.setDownloadFileContent(xmlObject.getChildNodeTextContentByName("DownloadFileContent"));
        this.setDownloadFileName(xmlObject.getChildNodeTextContentByName("DownloadFileName"));
    }
}
